﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QuanLyKhachSan.Validation
{
    public class ValidateResult
    {
        public List<string> Message { get; set; }

        public ValidateResult( )
        {
            Message = new List<string>();
        }

        public bool Valid()
        {
            return !Message.Any();
        }

        public override string ToString()
        {
            var sb = new StringBuilder();

            Message.ForEach(s=>sb.AppendLine(s));
            return sb.ToString();}
    }
}
